<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>生意帮</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../../css/swiper.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css" />
    <style>
        html,
        body {
            background-color: transparent;
        }
        .boxB {
          position: relative;;
          width: 100%;
          height: 100vh;
        }
        .mask {
          position: absolute;
          width: 100%;
          height: 100%;
          background-color: rgba(0,0,0,0.3);
        }
        .box {
            background-color: #fff;
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
        }

        .head_right .aui-pull-right {
            border: 1px solid #999;
            border-radius: 50%;
            height: 1rem;
            width: 1rem;
            text-align: center;
            line-height: 1rem;
        }

        .aui-iconfont {
            font-size: 0.6rem;
            vertical-align: top;
        }

        .head_right {
            position: relative;
        }


        .clearfix:after {
            content: '';
            display: block;
            clear: both;
        }
        #app .aui-list-header {
          background: #fff;
        }
        .aui-list-header i {
          font-style: normal;
          font-size: 1rem;
        }
    </style>
</head>

<body>
  <div id="app">
    <div class="boxB">
      <div class="mask" onclick="openF()"></div>
        <div class="box">
          <div class="aui-content">
                  <ul class="aui-list aui-media-list">
                      <li class="aui-list-header">
                          配送方式   <i onclick="openF()">×</i>
                      </li>
                      <li class="aui-list-item aui-list-item-middle" @click="sendType(0)">
                          <div class="aui-media-list-item-inner">
                              <div class="aui-list-item-inner">
                                  <div class="aui-list-item-text">
                                      <div class="aui-list-item-title aui-font-size-14">快递 <i style="font-style: normal" v-if="express_fee == 0">免邮</i><i style="font-style: normal" v-else>￥{{express_fee}}</i></div>
                                  </div>
                              </div>
                          </div>
                      </li>
                      <li class="aui-list-item aui-list-item-middle" @click="sendType(1)">
                          <div class="aui-media-list-item-inner">
                              <div class="aui-list-item-inner">
                                  <div class="aui-list-item-text">
                                      <div class="aui-list-item-title aui-font-size-14">自提</div>
                                  </div>
                              </div>
                          </div>
                      </li>
                  </ul>
              </div>
        </div>
    </div>
  </div>

</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/utils.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script type="text/javascript" src="../../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../../script/swiper.min.js"></script>
<script type="text/javascript" src="../../script/aui-slide.js"></script>
<script type="text/javascript" src="../../script/aui-lazyload.js"></script>
<script type="text/javascript">
    function openF() {
        api.closeFrame();
    }

    apiready = function() {
      var app = new Vue({
        el: '#app',
        data: {
          is_selflift: 0,
          express_fee: api.pageParam.express_fee
        },
        created: function() {
          var $_this = this;
          api.showProgress({
              title: '努力加载中...',
              text: '先喝杯茶...',
              modal: false
          });
          api.ajax({
            url: window.Url.Freegoods_getGoodsSku,
            method: 'post',
            data: {
              values: {
                goodsId: api.pageParam.id,
                token: $api.getStorage('token')
              }
            }
          }, function(ret, err) {
              if (ret) {

              } else {
                  api.alert({ msg: JSON.stringify(err) });
              }
          })
        },
        methods: {
          sendType: function (type) {
            api.sendEvent({
                name: 'sendType',
                extra: {
                    type: type
                }
            })
            openF()
          }

        },
        mounted: function () {
          api.hideProgress();
        }
      })
    }
</script>

</html>
